<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>bftpd documentation: Installation</TITLE>
 <LINK HREF="bftpddoc-en-3.html" REL=next>
 <LINK HREF="bftpddoc-en-1.html" REL=previous>
 <LINK HREF="bftpddoc-en.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="bftpddoc-en-3.html">Next</A>
<A HREF="bftpddoc-en-1.html">Previous</A>
<A HREF="bftpddoc-en.html#toc2">Contents</A>
<HR>
<H2><A NAME="s2">2.</A> <A HREF="bftpddoc-en.html#toc2">Installation</A></H2>

<H2><A NAME="ss2.1">2.1</A> <A HREF="bftpddoc-en.html#toc2.1">Compiling</A>
 </H2>

<P>First execute the following commands (replacing x.x.x by the version number you are installing):
<BLOCKQUOTE><CODE>
<PRE>
tar xzf bftpd-x.x.x.tar.gz
cd bftpd-x.x.x
./configure
make
make install
  
</PRE>
</CODE></BLOCKQUOTE>

Note that you have to copy bftpd.conf from the source directory to /etc manually if you are upgrading from a previous version, as 'make install' does not overwrite your existing configuration.</P>
<P>Note: If you want to use the 'tar.gz on-the-fly' feature of bftpd, you must
grab the source code of the program &quot;pax&quot; and extract it into
a subdirectory of the bftpd source directory. Then, instead of doing
&quot;./configure&quot;, do &quot;./configure --enable-pax=pax-sourcedir --enable-libz&quot;.
You must also have the library libz and its header file, /usr/include/zlib.h.</P>
<H2><A NAME="ss2.2">2.2</A> <A HREF="bftpddoc-en.html#toc2.2">Running the server</A>
</H2>

<P>bftpd runs in either standalone or inetd mode.
<DL>
<DT><B>If you want inetd mode</B><DD><P>Add the following to your /etc/inetd.conf:
<BLOCKQUOTE><CODE>
<PRE>
ftp stream tcp nowait root /usr/sbin/bftpd bftpd
</PRE>
</CODE></BLOCKQUOTE>

Give inetd a HUP or reboot your system. Your FTP server
should work now.</P>
<DT><B>If you want inetd mode with xinetd</B><DD><P>Add the following to your /etc/xinetd.conf:
<BLOCKQUOTE><CODE>
<PRE>
service ftp
{
    disable = no
    socket_type             = stream
    wait                    = no
    user                    = root
    server                  = /usr/sbin/bftpd
    log_on_success          += HOST PID
    log_on_failure          += HOST
    nice                    = 10
}
</PRE>
</CODE></BLOCKQUOTE>

(contributed by JackRipper)</P>
<DT><B>If you want standalone mode:</B><DD><P>Make the OS execute
<BLOCKQUOTE><CODE>
<PRE>
/usr/sbin/bftpd -d
</PRE>
</CODE></BLOCKQUOTE>

at bootup.</P>
</DL>
</P>
<HR>
<A HREF="bftpddoc-en-3.html">Next</A>
<A HREF="bftpddoc-en-1.html">Previous</A>
<A HREF="bftpddoc-en.html#toc2">Contents</A>
</BODY>
</HTML>
